<?php
if ($user['rank'] == 1 || $user['rank'] == 3 || $user['rank'] == 4)
{?>
	<fieldset><legend> <?php echo __('administration_contract').'</legend>'; ?><?php
	echo $link->projectLink($project_id, $project_name, __('edit', true) ,"/contracts/editByproject/");
	echo '</fieldset>';
}
?>

<h2><?php echo __('contract')." N° ".$contract['ref']; ?></h2>
<div class="largebloc2">
<h3><?php echo __('company')." </h3>".$client['Company']['name']; ?>
<br /><br />
<h3><?php echo __('list_profiles'); ?></h3>
<br />
<table width="50%">
<th><?php echo __('label'); ?></th><th><?php echo __('dayli_rate'); ?></th>
<?php
	foreach ($contractProfil as $cprofil):
		echo "<tr>";
		echo "<td>".$cf->getProfilName($profils, $cprofil['profil_id'])."</td>";
		echo "<td>".$cprofil['value']."</td>";
		echo "</tr>";
	endforeach;
?>
</table>
<br /><br />
<h3><?php echo __('list_interventions'); ?></h3>
<br />
<table width="50%">
<th><?php echo __('label'); ?></th><th><?php echo __('value'); ?></th>
<?php
	foreach ($contractIntervention as $cinterv):
		echo "<tr>";
		echo "<td>".$cf->getInterventionName($interventions, $cinterv['intervention_id'])."</td>";
		echo "<td>".$cinterv['value']."</td>";
		echo "</tr>";
	endforeach;
?>
</table>
<br /><br />
<h3><?php echo __('estimated_dayli_rate'); ?></h3>
<?php echo $contract['tjm']; ?>
</div>